
import React, {FC} from "react";
import {QuestionInputDefaultProps, QuestionInputProsTpye} from "./interface";
import {Input, Typography} from "antd";

const { Paragraph } = Typography

const QuestionInput: FC<QuestionInputProsTpye> = (props: QuestionInputProsTpye) => {
    const { title, placeholder } = { ...QuestionInputDefaultProps, ...props }

    return (
        <div>
            <Paragraph strong>{title}</Paragraph>
            <div>
                <Input placeholder={placeholder}></Input>
            </div>
        </div>
    )
}
export default QuestionInput;